class_name Buff
extends Resource

## 所有Buff的基类


enum NameColor {
    RED,
    GREEN,
    BLUE,
    ORANGE,
}


@export var name: String
@export var name_color: NameColor
@export_multiline var desc: String


func convert_color() -> Color:
    var color: Color = Color.WHITE
    match name_color:
        NameColor.RED: color = Color.RED
        NameColor.GREEN: color = Color.GREEN
        NameColor.BLUE: color = Color.DODGER_BLUE
        NameColor.ORANGE: color = Color.ORANGE
    return color


## 实现Buff的效果
func use(target: Player) -> void:
    pass


func get_text_dict() -> Dictionary:
    return {}
